package com.cjj2016.cjj.mynestedscrolldemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    private Button btnCaseOne,btnEleme;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnCaseOne = (Button) findViewById(R.id.btn_caseone);
        btnCaseOne.setOnClickListener(this);

        btnEleme = (Button) findViewById(R.id.btn_eleme);
        btnEleme.setOnClickListener(this);



    }




    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_caseone:
                Intent oneintent = new Intent(this,CaseOneActivity.class);
                startActivity(oneintent);
                break;
            case R.id.btn_eleme:
                Intent intent2 = new Intent(this,ElemeActivity.class);
                startActivity(intent2);
                break;
        }



    }
}
